package core;

import branch.Branch;
import gitobject.Commit;
import gitobject.GitObject;
import repository.Repository;

import java.io.File;

public class JitLog {
    /**
     * print commit history
     */
    public static void log() throws Exception {
        File branch = new File(Branch.path + File.separator +Branch.getCurrentBranchName());
        Commit c = Commit.deserialize(GitObject.getValue(branch));
        c.getLog();
    }
}
